package com.my.hotel.entity.serverPage;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 用户点赞表
 * 现在功能是用户只能点击一次内疗程点击取消点赞，不需要提示
 * 创建时isLike 默认是1
 * author:lwj
 * date: 2022/9/5 23:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserLike {
    private int userLikeId;
    private int userId;
    private int articleId;
    // todo 创建时isLike  必须默认是1
    //todo 这里是模拟数据先这样写
    private int isLike=1; //是否点赞0 未点赞 1 点赞
    public UserLike(int userId,int articleId){
        setArticleId(articleId);
        setUserId(userId);
    }

}
